package com.ning.ems.service;

import com.ning.ems.dto.UserCheckPassDto;
import com.ning.ems.dto.UserListDto;
import com.ning.ems.entity.User;

import java.util.List;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/3/7 18:11
 */
public interface UserService {

    User signUp(User user);

    User signIn(User user);

    List<User> list(UserListDto info);

    User get(Integer id);

    User get(String mobileNumber);

    boolean checkMobileNumber(String mobileNumber);

    boolean delete(Integer id);

    boolean updateName(Integer id, String name);

    boolean updatePassword(Integer id, String password);

    boolean updateMobileNumber(Integer id, String mobileNumber);

    boolean updateType(Integer id, Integer type);

    boolean checkPass(UserCheckPassDto info);
}
